-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement ixmp4 shim #516
Implement ixmp4 shim #516
Conversation
# WHERE run.is_default = 1 ORDER BY run.id ASC] | ||
return self._platform.runs.list() | ||
|
||
# The below methods of base.Backend are not yet implemented |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI @glatterf42, the idea is that to remove lines like name = _ni
below as each method gets a concrete implementation, in parallel with tests that exercise it.
def test_getattr(self, test_mp): | ||
"""Test __getattr__.""" | ||
with pytest.raises(AttributeError): | ||
test_mp.not_a_direct_backend_method | ||
|
||
def test_scenario_list(self, mp): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently fails (e.g. here) with:
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such table: run
[SQL: SELECT DISTINCT run.model__id, run.scenario__id, run.version, run.is_default, run.id
FROM run
WHERE run.is_default = 1 ORDER BY run.id ASC]
The Python 3.12 job fails with different exceptions than 3.10 and 3.11, for instance here:
I guess this means ixmp4 does not support Python 3.12, although it is installable. |
e6624c2
to
92ee78d
Compare
92ee78d
to
3e38bf0
Compare
Attempts to initialize each of JDBCBackend and IXMP4Backend.
3e38bf0
to
0c9022f
Compare
Superseded by #552 with a renamed branch.
This PR is intended to aid @glatterf42 in developing model data features in ixmp4. It is not a complete plan or solution for migrating ixmp-based code, workflows, and research to ixmp4; such a plan would involve many additional elements that are not in scope for this PR.
The PR:
ixmp.Platform
backed by IXMP4Backend to be created and used.Notes
ixmp4
from thetests
dependency, and don't install it on those Pythons.How to review
TBD. This branch/PR may not necessarily be merged itself, but may serve as the basis for another PR that adds the IXMP4Backend.
PR checklist